package com.ifinc.common.web.demo;

import com.ifinc.common.web.frame.BaseObject;
import static ibatis.PmuserConst.*;
import java.util.Map;

/**
 * User: luotao
 * Date: 13-11-27
 * Time: 14:00
 */
public class UserAction extends BaseObject {
    public String findUser() {
        addResult(username, reqParam.get(username));
        return "user/findUser";
    }

    public String saveUser() {
        save(pmuser_insert, reqParam);
        System.out.println(12345);
        return "user/save";
    }

    public String list() {
        addResult(pmusers, list(pmuser_list, null));
        return "user/list";
    }

    public String toedit() {
        Map user = load(pmuser_PK, reqParam);
        addResult(pmuser, user);
        return "user/edit";
    }

    @Override
    public void verify(String methodName) {

    }
}
